package com.zhuozhou.jdyc.main.base.adapter;

import android.content.Context;

import com.zhuozhou.jdyc.R;
import com.zhuozhou.jdyc.base.BaseRecyclerViewAdapter;
import com.zhuozhou.jdyc.base.BaseViewHolder;
import com.zhuozhou.jdyc.databinding.PersonalCenterItemMenuBinding;
import com.zhuozhou.jdyc.main.main.bean.PersonalCenterItemMenuBean;


/**
 * Created by 方舟 on 2018/7/12.
 * 个人中心网格布局
 */
public class PersonalCenterItemMenuAdapter extends BaseRecyclerViewAdapter<PersonalCenterItemMenuBean,PersonalCenterItemMenuBinding> {

    public PersonalCenterItemMenuAdapter(Context mContext) {
        super(mContext);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.personal_center_item_menu;
    }

    @Override
    public void onBindHolder(BaseViewHolder<PersonalCenterItemMenuBinding> holder, int pos) {
        holder.getBinding().customPersonalFragmentTextView.init(mList.get(pos).getImgRes()
                , mList.get(pos).getStrRes(), mList.get(pos).getTag(),
                mList.get(pos).getClx(), mList.get(pos).getRequestCode(),
                mList.get(pos).getFlag());
    }
}
